package cn.kgc.crowd1040.fundingadmin.controller;


import cn.kgc.crowd1040.fundingadmin.pojo.Auth;
import cn.kgc.crowd1040.fundingadmin.service.AuthService;
import com.baomidou.mybatisplus.extension.api.R;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gl
 * @since 2022-11-02
 */
@RestController
@RequestMapping
public class AuthController {

    @Resource
    AuthService authService;

    @ResponseBody
    @RequestMapping("/assign/get/all/auth")
    public R<List<Auth>> getAllAuth() {
        List<Auth> authList = authService.list(null);
        return R.ok(authList);
    }
}

